# !/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time      :2022/8/11 0011 23:16
# @Author    :jiaxuesong



#导包
import pymysql


# 打开数据库链接
conn = pymysql.connect(host = '127.0.0.1', user = 'root', password = '', db='localhost')

# 获取游标
cursor = conn.cursor()

sql = "select* from order_info where user_id = %s"

print(cursor.execute(sql, '1'))

cursor.close()
conn.close()